From f5d7eaa94e3312ea458926901ff5a13930e100dc Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Fri, 19 Sep 2025 01:35:15 +0200 Subject: [PATCH] luci-app-unbound: fix logic error Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/unbound/configure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js b/applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js index 06786f24b0..fab8ff8663 100644 --- a/applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js +++ b/applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js @@ -37,7 +37,7 @@ return view.extend({ const dhcpLink = uci.get('unbound', 'ub_main', 'dhcp_link'); const leasetrig = uci.get('dhcp', 'odhcpd', 'leasetrigger') || 'undefined'; - if (manual === '0' && dhcpLink === 'odhcpd' && leasetrig === '/usr/lib/unbound/odhcpd.sh') { + if (manual === '0' && dhcpLink === 'odhcpd' && leasetrig !== '/usr/lib/unbound/odhcpd.sh') { ui.addTimeLimitedNotification(null, E('p', _('Note: local DNS is configured to look at odhpcd, but odhpcd UCI lease trigger is incorrectly set:') + "dhcp.odhcpd.leasetrigger='" + leasetrig + "'"), 15000, 'note'); } -- 2.30.2